<template>
  <div>
    <msg title="报名成功"
         :description="description"
         :buttons="buttons"
         :iconImg="customImg"></msg>
  </div>
</template>

<script>
  import { Divider, XButton } from 'vux'
  import { Msg } from '../../components/msg'
  import img from '../../assets/img/invite-success.png'

  export default {
    components: {
      Msg,
      Divider,
      XButton
    },
    methods: {
      queryInvite () {
        this.$router.push('/demos/bid-forenotice-invited')
      }
    },
    data () {
      return {
        customImg: img,
        description: '',
        // icon: 'success',
        buttons: [{
          type: 'warn',
          text: '查看其它邀请',
          onClick: this.queryInvite
        }]
      }
    },
    mounted () {
      this.description = '您已成功报名' + this.$route.query.title + '招标请持续关注后续进展'
    }
  }
</script>
